import 'package:flutter/material.dart';

class CustomHeaderClipPath extends CustomClipper<Path> {
  @override
  getClip(Size size) {
    Path _path = Path();
    _path.moveTo(0, 0);
    _path.lineTo(0, size.height / 2);
    _path.quadraticBezierTo(
        size.width / 2, size.height * 0.8, size.width, size.height / 2);
    _path.lineTo(size.width, 0);
    return _path;
  }

  @override
  bool shouldReclip(covariant CustomClipper<dynamic> oldClipper) {
    return true;
  }
}
